#!/bin/bash

text='<a id="scpl2" aria-owns="scpc2" aria-controls="scpc2" aria-expanded="false" onclick="hpulc4hdr();selectScope(this, '"'academic'"');" href="/academic/?FORM=Z9LH2" h="ID=SERP,5026.1">Academic</aN'

echo "$text" | sed -r 's/.* href="([^"]+)".*/\1/'
